﻿@model IEnumerable<SuperJ.CMS.ViewModels.AnnounceViewModel>
@{
    Layout = null;
}


<div id="pageTitle" style="display:none;">公告管理</div>
<table id="gridMain"></table>
<div id="pager"></div>

<script type="text/javascript">
    $(function () {
        jQuery("#gridMain").jqGrid({
            url: '/Admin/Announce/JsonAnnounceList',
            datatype: "json",
            height: 250,
            colNames: ['ID', '标题', '外', '效', '顶', '发布时间', "操作"],
            colModel: [
   		{ name: 'AnnounceId', index: 'AnnounceId', width: 80, align: 'center', sortable: false },
   		{ name: 'Title', index: 'Title', width: 80, align: 'center', sortable: false },
   		{ name: 'IsLink', index: 'IsLink', width: 80, align: 'center', formatter: 'checkbox', sortable: false },
        { name: 'IsPass', index: 'IsPass', width: 80, align: 'center', formatter: 'checkbox', sortable: false },
        { name: 'IsTop', index: 'IsTop', width: 80, align: 'center', formatter: 'checkbox', sortable: false },
        { name: 'CreateTime', index: 'CreateTime', width: 100, align: 'center', formatter: 'date', formatoptions: { srcformat: 'Y-m-d H:i', newformat: 'Y-m-d H:i:s' }, sortable: false },
        { name: 'act', index: 'act', width: 80, align: 'center', sortable: false }
   	],
    rowNum:10,
   	rowList:[10,20,30],
   	pager: '#pager',
   	sortname: 'CreateTime',
   	height: 'auto',
    viewrecords: true,
    sortorder: "desc",
            multiselect: true,
            caption: "公告列表"
        });




    });
    
</script>